package core.hxl.service;

import core.hxl.dao.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    @Autowired
    private User user;

    public void test(){
        while (true){
            try {
                System.out.println("user:"+user.toString());
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

}
